-- GENERATED SPELL FOR [Nerub'ar Tunneler] --


function spell0_25622(pUnit, Event) --@Rock Shield,Self--
pUnit:FullCastSpellOnTarget(50364,pUnit)
pUnit:RegisterEvent('Sorts_25622', 16500, 1)
end

function Sorts_25622(pUnit, Event)
local choix_sorts_25622 = math.random(0, 0)
if choix_sorts_25622 == 0 then
pUnit:RegisterEvent('spell0_25622', 1, 1)
end
end

function mob25622_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25622', math.random(1500, 3000), 1)
end

function mob25622_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25622_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25622_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25622, 1, 'mob25622_Action')
RegisterUnitEvent(25622, 2, 'mob25622_Leave')
RegisterUnitEvent(25622, 3, 'mob25622_Kill')
RegisterUnitEvent(25622, 4, 'mob25622_Die')
